<?$attributes = array('class' => 'email', 'id' => 'checknew');
echo form_open('file_image/dels', $attributes);?>
<input type="hidden" name="page" value="<?php echo (int)$this->uri->segment('3')?>">
        <table class="admindata">
            <thead>
                <tr>
                    <th colspan="6">
                        <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                        Hiện có <?php echo $num?> hình ảnh <?php echo $pagination?>
                        <div class="fr">
                           <!-- <a href="<?php echo site_url('file_image/add')?>">Thêm mới</a> -->
                        </div>
                    </th>
                </tr>
                <tr>
                    <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>

                    <th width="150">Hình ảnh</th> 
                    <th>Tiêu đề</th>
                    <th width="250">Tên album</th>
                  
                    <th class="publish" style="width: 120px;">Active</th>
                </tr>                
            </thead>
            <?
            $k=1;
            foreach($list as $rs):?>
            <tr class="row<?php echo $k?>">
                <td><input type="checkbox" name="ar_id[]" value="<?php echo $rs->file_image_id ?>"></td>
                
                <td>
                <?php if($rs->file_name){?>
                    <img alt="<?php echo $rs->title;?>" src="<?php echo base_url_site()."uploads/media/images/".$rs->file_name;?>" width="100" height="100">
                    <?php }else{ ?>
					<img alt="<?php echo $rs->title;?>" src="<?php echo base_url_site()."uploads/media/images/noimages.jpg"?>" width="100" height="100" />	
						<?php } ?>
                </td>
                  <td>
                    <?php echo $rs->title?>
                </td>
                <td>
                    <?php echo $rs->name;?>
                </td>
               
                <td align="center">
                    <?php echo icon_edit('file_image/edit/'.$rs->file_image_id)?>
                    <span id="publish<?php echo $rs->file_image_id?>"><?php echo icon_active("'image_beauty'","'file_image_id'",$rs->file_image_id,$rs->bl_active)?></span>
                    <?php echo icon_del('file_image/del/'.$rs->file_image_id.'/'.(int)$this->uri->segment(4))?>
                </td>
            </tr>
            <?
            $k=1-$k;
            endforeach;?>
            <tfoot>
                <td colspan="6">
                    <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                    Hiện có <?php echo $num?> hình ảnh <?php echo $pagination?>
                </td>
            </tfoot>
        </table>  
<?php echo form_close()?>  
